package com.ease.archiecture;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;

@Data
@ConfigurationProperties(prefix = "demo-config")
public class DemoProperties {

    @Bean
    public DemoService getBean() {
        return new DemoService();
    }
}
